//
//  CategoriesViewController.m
//  Wedding fantastic
//
//  Created by ZLM on 15/6/29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "CategoriesViewController.h"

@interface CategoriesViewController ()

@end

@implementation CategoriesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    婚礼策划按钮
    UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    button1.frame = CGRectMake(0,64, 375*kWidth/375, (667*kHeight/667-64-49)/6);
    [button1 setTitle:@"婚礼策划" forState:UIControlStateNormal];
    button1.backgroundColor = [UIColor whiteColor];
    [button1 setTitleColor:[UIColor redColor]forState:UIControlStateNormal];
    button1.titleLabel.font = [UIFont systemFontOfSize:30];
    
    [button1 addTarget:self action:@selector(button1Action:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
//   婚纱摄影按钮
    UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom];
    button2.frame = CGRectMake(0, button1.frame.origin.y+button1.frame.size.height,375*kWidth/375, (667*kHeight/667-64-49)/6);
    [button2 setTitle:@"婚纱摄影" forState:UIControlStateNormal];
    button2.backgroundColor = [UIColor whiteColor];
    [button2 setTitleColor:[UIColor orangeColor]forState:UIControlStateNormal];
    button2.titleLabel.font = [UIFont systemFontOfSize:28];

    [button2 addTarget:self action:@selector(button2Action:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button2];
//   摄影师按钮
    UIButton *button3 = [UIButton buttonWithType:UIButtonTypeCustom];
    button3.backgroundColor = [UIColor whiteColor];
    [button3 setTitleColor:[UIColor yellowColor]forState:UIControlStateNormal];
    button3.titleLabel.font = [UIFont systemFontOfSize:30];

    button3.frame = CGRectMake(0, button2.frame.origin.y+button2.frame.size.height,375*kWidth/375, (667*kHeight/667-64-49)/6);
    [button3 setTitle:@"摄影师" forState:UIControlStateNormal];
    [button3 addTarget:self action:@selector(button3Action:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button3];
    
    UIButton *button4 = [UIButton buttonWithType:UIButtonTypeCustom];
    button4.frame = CGRectMake(0, button3.frame.origin.y+button3.frame.size.height,375*kWidth/375, (667*kHeight/667-64-49)/6);
    
    [button4 setTitle:@"摄像师" forState:UIControlStateNormal];
    button4.backgroundColor = [UIColor whiteColor];
    [button4 setTitleColor:[UIColor greenColor]forState:UIControlStateNormal];
    button4.titleLabel.font = [UIFont systemFontOfSize:28];

    [button4 addTarget:self action:@selector(button4Action:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button4];
//    化妆师按钮
    UIButton *button5 = [UIButton buttonWithType:UIButtonTypeCustom];
    button5.frame = CGRectMake(0, button4.frame.origin.y+button4.frame.size.height,375*kWidth/375, (667*kHeight/667-64-49)/6);
    [button5 setTitle:@"化妆师" forState:UIControlStateNormal];
    button5.backgroundColor = [UIColor whiteColor];
    [button5 setTitleColor:[UIColor blackColor]forState:UIControlStateNormal];
    button5.titleLabel.font = [UIFont systemFontOfSize:30];

    [button5 addTarget:self action:@selector(button5Action:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button5];
// 主持人按钮
    UIButton *button6 = [UIButton buttonWithType:UIButtonTypeCustom];
    button6.backgroundColor = [UIColor whiteColor];
    [button6 setTitleColor:[UIColor purpleColor]forState:UIControlStateNormal];
    button6.titleLabel.font = [UIFont systemFontOfSize:28];

    button6.frame = CGRectMake(0, button5.frame.origin.y+button5.frame.size.height,375*kWidth/375, (667*kHeight/667-64-49)/6);
    [button6 addTarget:self action:@selector(button6Action:) forControlEvents:UIControlEventTouchUpInside];
    [button6 setTitle:@"主持人" forState:UIControlStateNormal];
    [self.view addSubview:button6];
    
    

    
    
    
    
}
//婚礼策划方法
-(void)button1Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    NSLog(@"~~~~~~~~~~~~~~~~~~4444%@",detailVC.buttonName);
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];


}
//婚纱摄影方法
-(void)button2Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];
    
    
}
//摄影师方法
-(void)button3Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];
    
    
}
//摄像师方法
-(void)button4Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];
    
    
}
//化妆师按钮方法
-(void)button5Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];
    
    
}
//主持人按钮方法
-(void)button6Action:(UIButton *)button{
    DetialBaseViewController *detailVC = [[DetialBaseViewController alloc]init];
    detailVC.buttonName = button.titleLabel.text;
    [self.navigationController setModalTransitionStyle:UIModalTransitionStylePartialCurl];
    [self.navigationController pushViewController:detailVC animated:YES];
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
